#include <bits/stdc++.h>
using namespace std;
int powerList[100005] = {0};
bool living[100005];
bool fighting[100005];
int main(){
    cin.tie(0);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    memset(living,true,sizeof(living));
    memset(fighting,true,sizeof(fighting));
    int number1;
    cin >> number1;
    for (int i = 0;i < number1;i++){
        cin >> powerList[i];
    }
    sort(powerList,powerList+number1);
    for(int i = 0;i < number1;i++){
        int power = powerList[i];
        for(int j = i;j < number1;j++){
            if (powerList[j] > power && fighting[j]){
                fighting[j] = false;
                living[i] = false;
                break;
            }
        }
    }
    int ans = 0;
    for (int i = 0;i < number1;i++){
        if (living[i]){
            ans++;
        }
    }
    cout << ans << endl;
    return 0;
}
